Opcode

enum Opcode : ProtocolMessageEnum

What operation would we like the UUT to perform.
note: senders should probably set want_response in their request packets, so that they can know when the state
machine has started processing their request
Protobuf enum meshtastic.PowerStressMessage.Opcode

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val BT_OFF_VALUE: Int = 80
Turn off the BT radio for num_seconds
BT_OFF = 80;
Link copied to clipboard
val BT_ON_VALUE: Int = 81
Turn on the BT radio for num_seconds
BT_ON = 81;
Link copied to clipboard
Force deep sleep for FIXME seconds
CPU_DEEPSLEEP = 33;
Link copied to clipboard
Spin the CPU as fast as possible for num_seconds
CPU_FULLON = 34;
Link copied to clipboard
Let the CPU run but we assume mostly idling for num_seconds
CPU_IDLE = 32;
Link copied to clipboard
Stop powerstress processing - probably by just rebooting the board
END_QUIET = 3;
Link copied to clipboard
Try to turn off all automatic processing of packets, screen, sleeping, etc (to make it easier to measure in isolation)
FORCE_QUIET = 2;
Link copied to clipboard
val GPS_OFF_VALUE: Int = 112
Turn off the GPS radio for num_seconds
GPS_OFF = 112;
Link copied to clipboard
val GPS_ON_VALUE: Int = 113
Turn on the GPS radio for num_seconds
GPS_ON = 113;
Link copied to clipboard
val LED_OFF_VALUE: Int = 49
Force the LED off for num_seconds
LED_OFF = 49;
Link copied to clipboard
val LED_ON_VALUE: Int = 48
Turn the LED on for num_seconds (and leave it on - for baseline power measurement purposes)
LED_ON = 48;
Link copied to clipboard
Completely turn off the LORA radio for num_seconds
LORA_OFF = 64;
Link copied to clipboard
val LORA_RX_VALUE: Int = 66
Receive Lora packets for num_seconds (node will be mostly just listening, unless an external agent is helping stress this by sending packets on the current channel)
LORA_RX = 66;
Link copied to clipboard
val LORA_TX_VALUE: Int = 65
Send Lora packets for num_seconds
LORA_TX = 65;
Link copied to clipboard
Print board version slog and send an ack that we are alive and ready to process commands
PRINT_INFO = 1;
Link copied to clipboard
Turn the screen off
SCREEN_OFF = 17;
Link copied to clipboard
Turn the screen on
SCREEN_ON = 16;
Link copied to clipboard
val UNSET_VALUE: Int = 0

Unset/unused
UNSET = 0;
Link copied to clipboard
Turn off the WIFI radio for num_seconds
WIFI_OFF = 96;
Link copied to clipboard
val WIFI_ON_VALUE: Int = 97
Turn on the WIFI radio for num_seconds
WIFI_ON = 97;

Functions

Link copied to clipboard
Link copied to clipboard
open fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): PowerMonProtos.PowerStressMessage.Opcode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.